﻿$(document).ready(function () {
    var vMilice = $("#HolderContent_txtMilice").val();
    var vSoldat = $("#HolderContent_txtSoldat").val();
    var vCavalier = $("#HolderContent_txtCavalier").val();
    var vArcher = $("#HolderContent_txtArcher").val();
    var vPrete = $("#HolderContent_txtPretre").val();

    $("#HolderContent_sliMilice").slider({
        orientation: "vertical",
        range: "min",
        min: 0,
        max: 100,
        value: $("#HolderContent_txtMilice").val(),
        slide: function (event, ui) {
            $("#HolderContent_txtMilice").val(ui.value);
            document.getElementById("HolderContent_lblMilice").innerHTML = (ui.value);
            vMilice = ui.value;
           // calcul();
        }
    });
    $("#HolderContent_txtMilice").val($("#HolderContent_sliMilice").slider("value"));
    $("#HolderContent_sliSoldat").slider({
        orientation: "vertical",
        range: "min",
        min: 0,
        max: 100,
        value: $("#HolderContent_txtSoldat").val(),
        slide: function (event, ui) {
            $("#HolderContent_txtSoldat").val(ui.value);
            document.getElementById("HolderContent_lblSoldat").innerHTML = (ui.value);
            vSoldat = ui.value;
           // calcul();
        }
    });
    $("#HolderContent_txtSoldat").val($("#HolderContent_sliSoldat").slider("value"));

    $("#HolderContent_sliCavalier").slider({
        orientation: "vertical",
        range: "min",
        min: 0,
        max: 100,
        value: $("#HolderContent_txtCavalier").val(),
        slide: function (event, ui) {
            $("#HolderContent_txtCavalier").val(ui.value);
            document.getElementById("HolderContent_lblCavalier").innerHTML = (ui.value);
            vCavalier = ui.value;
          //  calcul();
        }
    });
    $("#HolderContent_txtCavalier").val($("#HolderContent_sliCavalier").slider("value"));

    $("#HolderContent_sliArcher").slider({
        orientation: "vertical",
        range: "min",
        min: 0,
        max: 100,
        value: $("#HolderContent_txtArcher").val(),
        slide: function (event, ui) {
            $("#HolderContent_txtArcher").val(ui.value);
            document.getElementById("HolderContent_lblArcher").innerHTML = (ui.value);
            vArcher = ui.value;
          //  calcul();
        }
    });
    $("#HolderContent_txtArcher").val($("#HolderContent_sliArcher").slider("value"));

    $("#HolderContent_sliPretre").slider({
        orientation: "vertical",
        value: $("#HolderContent_txtPretre").val(),
        slide: function (event, ui) {
            $("#HolderContent_txtPretre").val(ui.value);
            document.getElementById("HolderContent_lblPretre").innerHTML = (ui.value);
            vPrete = ui.value;
           // calcul();
        }
    });
    $("#HolderContent_txtPretre").val($("#HolderContent_sliPretre").slider("value"));


});


        